# Override of vanilla civic_hive_devouring_swarm: adds mutual exclusion with
# civic_xenomorph_brood_extermination_mandate (BEM is the "breeds instead of devours" opposite).
# PATCH-WATCH: verbatim copy of vanilla DS (4.3.x) + ONE added exclusion line. Re-sync on patches.
civic_hive_devouring_swarm = {
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		origin = {
			NOR = {
				value = origin_common_ground
				value = origin_hegemon
				value = origin_tree_of_life
			}
		}
		civics = {
			NOR = {
				text = civic_tooltip_not_guided
				value = civic_guided_sapience
				value = civic_corporate_guided_sapience
				value = civic_hive_guided_sapience
				value = civic_machine_guided_sapience
			}
			NOR = {
				value = civic_hive_bodysnatcher
				value = civic_hive_scorched_earth
				value = civic_xenomorph_brood_extermination_mandate
			}
		}
	}
	random_weight = {
		base = @civic_default_random_weight
		modifier = {
			factor = 0
			blocks_disruptive_gameplay = yes
		}
	}

	description = "civic_tooltip_devouring_swarm_effects"
	modifier = {
		councilor_gestalt_legion_exp_gain = @gestalt_civic_node_xp_rate
		country_starbase_influence_cost_mult = -0.5
		ship_hull_mult = 0.25
		ship_hull_regen_add_perc = 0.05
		ship_armor_regen_add_perc = 0.05
		army_damage_mult = 0.40
		category_biology_research_speed_mult = 0.20
		starbase_shipyard_build_cost_mult = -0.25
		country_naval_cap_mult = 0.33
		add_attunement_the_eater_of_worlds = @civic_attunement1
		the_cradle_of_souls_attunement_mult = -0.25
	}

	swap_type = {
		name = civic_hive_devouring_swarm_lithoid
		description = "civic_tooltip_devouring_swarm_lithoid_effects"
		trigger = {
			is_species_class = LITHOID
			is_wilderness_empire = no
			is_nomadic = no
		}
	}
	swap_type = {
		name = civic_hive_devouring_swarm_lithoid_nomadic
		description = "civic_tooltip_devouring_swarm_lithoid_nomadic_effects"
		trigger = {
			is_species_class = LITHOID
			is_wilderness_empire = no
			is_nomadic = yes
		}
	}
	swap_type = {
		name = civic_hive_devouring_swarm_wilderness
		trigger = { is_wilderness_empire = yes }
		description = "civic_tooltip_devouring_swarm_wilderness_effects"
	}
}
